package cn.neusoft.yp.mapper;

import cn.neusoft.yp.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by gaosheng on 2017/4/27.
 */
public interface UserMapper {

    void saveUser(User user);

    User findUserByUsername(String username);

    List<User> findAll();

    void updateRole(@Param("role") String role, @Param("id") String id);
}
